home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / include / sphereP.h < prev    next >
C/C++ Source or Header  |  1993-02-16  |  614b  |  29 lines

  1. #ifndef SPHEREP_H
  2. #define SPHEREP_H
  3.  
  4. #include "sphere.h"
  5. #include "instP.h"
  6.  
  7. #define SPHEREFIELDS \
  8.   INSTFIELDS \
  9.   float radius; \
  10.   HPoint3 center; \
  11.   int space;
  12.  
  13. struct Sphere {
  14.   SPHEREFIELDS
  15. };
  16.     
  17. #define SPHEREMAGIC    GeomMagic('s', 1)
  18.  
  19. extern GeomClass *SphereMethods();
  20. extern Sphere *SphereCreate(Geom *, GeomClass *, va_list a_list );
  21. extern Sphere *SphereFLoad(FILE *, char *);
  22. extern Sphere *SphereSave(Sphere *, char *);
  23. extern Sphere *SphereFSave(Sphere *, FILE *, char *);
  24.  
  25. /* These are non-mallocing if sphere exists; will create a new sphere and
  26.  * return it if sphere does not exist */
  27.  
  28. #endif
  29.